<!--
 * @Author: your name
 * @Date: 2021-08-16 11:49:54
 * @LastEditTime: 2021-08-16 20:02:31
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \briup\3-html&css\day11\06-案例.html
-->
<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="stylesheet" href="./animate.css">
    <style>
        /* 唱片一直旋转 */
        
        img {
            width: 100%;
            height: 100%;
        }
        
        body>div:nth-child(1) {
            width: 400px;
            height: 400px;
            border: 10px solid black;
            border-radius: 50%;
            margin: 40px;
            animation-name: move;
            animation-duration: 3s;
            animation-iteration-count: infinite;
            animation-timing-function: linear;
            overflow: hidden;
        }
        /* 鼠标悬停 */
        
        body>div:nth-child(1):hover {
            animation-play-state: paused;
        }
        
        @keyframes move {
            from {
                transform: rotate(0);
            }
            to {
                transform: rotate(360deg);
            }
        }
        
        body>div:nth-child(2),
        body>div:nth-child(3),
        body>div:nth-child(4) {
            width: 300px;
            height: 300px;
            border: 10px solid yellow;
            overflow: hidden;
        }
        /* animation方法 */
        
        @keyframes big {
            from {}
            to {
                transform: scale(2, 2);
            }
        }
        
        body>div:nth-child(2)>img:hover {
            animation: big 2s linear;
        }
        /* 第三方引入 */
        
        body>div:nth-child(3)>img:hover {
            animation: pulse 2s forwards;
            cursor: pointer;
        }
        /* transition方法 */
        
        body>div:nth-child(4)>img {
            transition: all 3s;
        }
        
        body>div:nth-child(4)>img:hover {
            /* transition:all 3s; 等价于transition-property:all; */
            width: 120%;
            height: 120%;
        }
    </style>
</head>

<body>
    <div>
        <img src="./desktop.png" alt="">
    </div>
    animation:
    <div>
        <img src="/项目/网易考拉案例/images/popularity/1.jpg" alt="">
    </div>
    animate第三方引入:
    <div>
        <img src="/项目/网易考拉案例/images/popularity/1.jpg" alt="" class="animate__animated animate_pulse">
    </div>
    transition:
    <div>
        <img src="/项目/网易考拉案例/images/popularity/1.jpg" alt="">
    </div>
</body>

</html>